<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="//res.layui.com/layui/dist/css/layui.css" media="all">
</head>
<body>
<div class="container">

    <div class="row clearfix">
        <div class="col-md-4 column">
            <a class="btn btn-primary" href="${pageContext.request.contextPath}/welcome">返回</a>
        </div>
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small>用户信息</small>
                </h1>
            </div>
        </div>
    </div>
    头像：<img src="/showPicture" style="width:auto;height: 50px; border-radius: 50%" alt="">
    <br><br>
     名  称 ：<input type="text" name="username" value="${user.username}" style="border:none" disabled/><br><br>
    用户密码：<input type="text" name="password" value="${user.password}" style="border:none" disabled/><br><br>
    用户类型：<input type="text" name="userType" value="${user.userType }" style="border:none" disabled/><br><br>

    <form action="/upload/add" method="post" enctype="multipart/form-data">
        <input type="file" name="file" title="点击更改头像">
        <br>
        <input type="submit" value="确定">
    </form>
</div>
</body>
</html>